package com.zhiwang.planet.di.component

import com.zhiwang.planet.di.ActivityScope
import com.zhiwang.planet.di.module.AccountModule
import com.zhiwang.planet.di.module.AutoDisposeModule
import com.zhiwang.planet.ui.MainActivity
import com.zhiwang.planet.ui.main.MainFragment
import com.zhiwang.planet.ui.main.MyFragment
import dagger.Component

@ActivityScope
@Component(dependencies = [AppComponent::class],modules = [AccountModule::class, AutoDisposeModule::class])
interface MainComponent {
    fun inject(activity: MainActivity)
    fun inject(fragment: MainFragment)
    fun inject(myFragment: MyFragment)
}